From eb5d618c18e7e75a82adc7b441cf18da07a337f4 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 20 Mar 1993 20:48:34 +0000 Subject: [PATCH] * xfns.c (Fx_open_connection): If we have X11R5, use XrmSetDatabase to set the display's database. In older versions, just store the value into x_current_display->db. --- src/xfns.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xfns.c b/src/xfns.c index cf55cc6c3e1..8d411508dcd 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3756,7 +3756,11 @@ arg XRM_STRING is a string of resources in xrdb format.") else xrm_option = (unsigned char *) 0; xrdb = x_load_resources (x_current_display, xrm_option, EMACS_CLASS); +#ifdef HAVE_X11R5 + XrmSetDatabase (x_current_display, xrdb); +#else x_current_display->db = xrdb; +#endif x_screen = DefaultScreenOfDisplay (x_current_display); -- 2.30.2